gtk4.git
4 years agospinbutton: Connect swipe gesture to the text entry
Carlos Garnacho [Tue, 8 Jun 2021 13:06:29 +0000 (15:06 +0200)]
spinbutton: Connect swipe gesture to the text entry

In the GTK3 days, the spin button was an entry, with buttons on
top, and the swipe gesture affected the input on the entry bits.
Now the spin button is a container, so this gesture in the capture
phase applies to all contained children (incl. buttons).

Attach this gesture to the entry itself, so the buttons are left
outside this business. The gesture is still in the capture phase
in order to prevent text selection/edition/etc to happen.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4008
4 years agoMerge branch 'password-entry-buffer' into 'master'
Matthias Clasen [Tue, 8 Jun 2021 12:09:01 +0000 (12:09 +0000)]
Merge branch 'password-entry-buffer' into 'master'

Install gtkpasswordentrybuffer.h

See merge request GNOME/gtk!3646

4 years agoInstall gtkpasswordentrybuffer.h
Matthias Clasen [Tue, 8 Jun 2021 11:49:06 +0000 (07:49 -0400)]
Install gtkpasswordentrybuffer.h

4 years agoMerge branch 'password-entry-buffer' into 'master'
Matthias Clasen [Tue, 8 Jun 2021 11:25:12 +0000 (11:25 +0000)]
Merge branch 'password-entry-buffer' into 'master'

Make GtkPasswordEntryBuffer public

See merge request GNOME/gtk!3645

4 years agoMake GtkPasswordEntryBuffer public
Matthias Clasen [Tue, 8 Jun 2021 11:25:11 +0000 (11:25 +0000)]
Make GtkPasswordEntryBuffer public

4 years agoMerge branch 'ebassi/issue-3892' into 'master'
Matthias Clasen [Mon, 7 Jun 2021 18:10:12 +0000 (18:10 +0000)]
Merge branch 'ebassi/issue-3892' into 'master'

a11y: Update the level property for tree expanders

Closes #3892

See merge request GNOME/gtk!3470

4 years agoMerge branch 'glib-main' into 'master'
Emmanuele Bassi [Mon, 7 Jun 2021 14:53:04 +0000 (14:53 +0000)]
Merge branch 'glib-main' into 'master'

subprojects: Use GLib main branch

See merge request GNOME/gtk!3642

4 years agosubprojects: Use GLib main branch
Philip Withnall [Mon, 7 Jun 2021 13:56:49 +0000 (14:56 +0100)]
subprojects: Use GLib main branch

GLib upstream has renamed its `master` branch to `main`.

See https://gitlab.gnome.org/GNOME/glib/-/issues/2348.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 5 Jun 2021 22:13:21 +0000 (22:13 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Docs: Tweaks

Closes #3638

See merge request GNOME/gtk!3639

4 years agogtk-builder-tool: Replace can-focus with focusable
Matthias Clasen [Sat, 5 Jun 2021 21:56:35 +0000 (17:56 -0400)]
gtk-builder-tool: Replace can-focus with focusable

The focusable property has the meaning that can-focus had
in GTK 3.

Update tests, and mention this in the migration guide.

Fixes: #3638
4 years agoDocs: Tweaks
Matthias Clasen [Sat, 5 Jun 2021 21:36:02 +0000 (17:36 -0400)]
Docs: Tweaks

Remove some more redundant "or NULL" blurbs.

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 5 Jun 2021 21:36:06 +0000 (21:36 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

popovermenu: doc tweaks

See merge request GNOME/gtk!3638

4 years agopopovermenu: doc tweaks
Matthias Clasen [Sat, 5 Jun 2021 21:19:39 +0000 (17:19 -0400)]
popovermenu: doc tweaks

4 years agoMerge branch 'submenu-action-fixes' into 'master'
Matthias Clasen [Sat, 5 Jun 2021 13:36:10 +0000 (13:36 +0000)]
Merge branch 'submenu-action-fixes' into 'master'

Submenu action fixes

Closes #3721

See merge request GNOME/gtk!3272

4 years agoMerge branch 'msvc-aarch64' into 'master'
Matthias Clasen [Sat, 5 Jun 2021 13:05:15 +0000 (13:05 +0000)]
Merge branch 'msvc-aarch64' into 'master'

gtkpopcountprivate.h: Fix build on ARM/aarch64 Visual Studio

See merge request GNOME/gtk!3637

4 years agomenusectionbox: Fix submenu-action for nested menus
Matthias Clasen [Mon, 8 Mar 2021 05:43:43 +0000 (00:43 -0500)]
menusectionbox: Fix submenu-action for nested menus

We were not updating the state of submenu-actions
for nested submenus.

Fixes: #3721
4 years agopopovermenubar: Make submenu-actions work
Matthias Clasen [Mon, 8 Mar 2021 05:46:30 +0000 (00:46 -0500)]
popovermenubar: Make submenu-actions work

We were not updating submenu-action state
for items in menubars.

4 years agomenutrackeritem: Make submenu-actions work again
Matthias Clasen [Mon, 8 Mar 2021 05:45:35 +0000 (00:45 -0500)]
menutrackeritem: Make submenu-actions work again

This broke when GtkActionMuxer stopped being a
GActionGroup.

4 years agobloatpad: Bring back the menubar
Matthias Clasen [Mon, 8 Mar 2021 05:43:03 +0000 (00:43 -0500)]
bloatpad: Bring back the menubar

This was lost at some point.

4 years agoMerge branch 'powimod_icon' into 'master'
Matthias Clasen [Sat, 5 Jun 2021 12:47:08 +0000 (12:47 +0000)]
Merge branch 'powimod_icon' into 'master'

Load icon from executable on Windows

Closes #3713

See merge request GNOME/gtk!3326

4 years agogtkpopcountprivate.h: Fix build on ARM/aarch64 Visual Studio
Chun-wei Fan [Sat, 5 Jun 2021 07:37:52 +0000 (15:37 +0800)]
gtkpopcountprivate.h: Fix build on ARM/aarch64 Visual Studio

__popcnt() is not supported for ARM nor ARM64 Visual Studio builds, so we must
use the fallback implementation as intrinsics are not supported for this
purpose on ARM/ARM64 Visual Studio builds.

4 years agoMerge branch 'ci-file-filters' into 'master'
Matthias Clasen [Sat, 5 Jun 2021 01:47:24 +0000 (01:47 +0000)]
Merge branch 'ci-file-filters' into 'master'

GtkFileFilter: Allow case-insensitive patterns

Closes #3705

See merge request GNOME/gtk!359

4 years agoMerge branch 'imcontext-ignore-more-keysyms' into 'master'
Matthias Clasen [Sat, 5 Jun 2021 01:19:39 +0000 (01:19 +0000)]
Merge branch 'imcontext-ignore-more-keysyms' into 'master'

imcontext: Ignore more keysyms

See merge request GNOME/gtk!3634

4 years agoAdd GtkFileFilter tests
Matthias Clasen [Fri, 4 Jun 2021 22:34:01 +0000 (18:34 -0400)]
Add GtkFileFilter tests

4 years agoGtkFileFilter: Add suffix matches
Matthias Clasen [Fri, 4 Jun 2021 03:55:48 +0000 (23:55 -0400)]
GtkFileFilter: Add suffix matches

This is less flexible than a glob pattern, but it is
explicitly case-insensitive, to match the behavior
on Windows.

Fixes: #3705
4 years agoAdd a helper to make case-insensitive globs
Matthias Clasen [Fri, 4 Jun 2021 03:50:09 +0000 (23:50 -0400)]
Add a helper to make case-insensitive globs

This will be used in GtkFileFilter in the future.

Tests included.

4 years agoimcontext: Ignore more keysyms
Matthias Clasen [Fri, 4 Jun 2021 23:01:57 +0000 (19:01 -0400)]
imcontext: Ignore more keysyms

It finally dawned on my that #3673 is just another
case of unexpected keysyms getting sent our way via
fringe XKB features.

Ignore them all!

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 4 Jun 2021 20:24:23 +0000 (20:24 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

docs: Mention <packing> in migration guide

Closes #3950 and #2271

See merge request GNOME/gtk!3630

4 years agoMerge branch 'master' into 'matthiasc/for-master'
Matthias Clasen [Fri, 4 Jun 2021 20:24:09 +0000 (20:24 +0000)]
Merge branch 'master' into 'matthiasc/for-master'

# Conflicts:
#   docs/reference/gtk/migrating-3to4.md

4 years agoicontheme: Add detail to the 'not found' message
Matthias Clasen [Fri, 4 Jun 2021 13:47:26 +0000 (09:47 -0400)]
icontheme: Add detail to the 'not found' message

Name the icon theme we're using.

Fixes: #2271
4 years agoClean up some comments
Matthias Clasen [Fri, 4 Jun 2021 12:58:12 +0000 (08:58 -0400)]
Clean up some comments

These XXX comments aren't useful enough to keep.

4 years agoAdd a doc comment for gsk_rounded_rect_is_circular
Matthias Clasen [Fri, 4 Jun 2021 12:44:37 +0000 (08:44 -0400)]
Add a doc comment for gsk_rounded_rect_is_circular

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 4 Jun 2021 13:21:37 +0000 (13:21 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

docs: Mention <packing> in migration guide

Closes #3950

See merge request GNOME/gtk!3629

4 years agowayland: Add a comment
Matthias Clasen [Fri, 4 Jun 2021 12:29:23 +0000 (08:29 -0400)]
wayland: Add a comment

I just had to debug this to rediscover how it works, so
add a comment for next time.

4 years agowayland: Add a comment
Matthias Clasen [Fri, 4 Jun 2021 12:29:23 +0000 (08:29 -0400)]
wayland: Add a comment

I just had to debug this to rediscover how it works, so
add a comment for next time.

4 years agodocs: Escape some xml tags
Matthias Clasen [Fri, 4 Jun 2021 12:06:18 +0000 (08:06 -0400)]
docs: Escape some xml tags

When mentioning xml tags in markdown, we must write
them as `<foo>`, or they will come out mangled.

4 years agodocs: Mention <packing> in migration guide
Matthias Clasen [Fri, 4 Jun 2021 11:41:25 +0000 (07:41 -0400)]
docs: Mention <packing> in migration guide

Add another hint for what to do with child properties.

Fixes: #3950
4 years agodocs: Mention <packing> in migration guide
Matthias Clasen [Fri, 4 Jun 2021 11:41:25 +0000 (07:41 -0400)]
docs: Mention <packing> in migration guide

Add another hint for what to do with child properties.

Fixes: #3950
4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 4 Jun 2021 04:43:20 +0000 (04:43 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

fnmatch: Support case-folding

See merge request GNOME/gtk!3628

4 years agoMerge branch 'gtk_combo_box_with_entry_docs_update' into 'master'
Matthias Clasen [Fri, 4 Jun 2021 04:02:48 +0000 (04:02 +0000)]
Merge branch 'gtk_combo_box_with_entry_docs_update' into 'master'

Documentation update for combo_box_new_with_entry

See merge request GNOME/gtk!3605

4 years agoDocumentation update for combo_box_new_with_entry
DarkTrick [Fri, 4 Jun 2021 04:02:48 +0000 (04:02 +0000)]
Documentation update for combo_box_new_with_entry

4 years agoMove fnmatch testcases to the testsuite
Matthias Clasen [Fri, 4 Jun 2021 03:33:33 +0000 (23:33 -0400)]
Move fnmatch testcases to the testsuite

We have a well-working way to test internal
apis now, lets use it for these tests.

4 years agofnmatch: Support case-folding
Matthias Clasen [Fri, 4 Jun 2021 03:55:30 +0000 (23:55 -0400)]
fnmatch: Support case-folding

This will be used in GtkFileFilter in the future.

Update all callers.

4 years agoMerge branch 'bilelmoussaoui/markdown-links' into 'master'
Matthias Clasen [Fri, 4 Jun 2021 02:45:25 +0000 (02:45 +0000)]
Merge branch 'bilelmoussaoui/markdown-links' into 'master'

docs: use markdown syntax for hyperlinks

See merge request GNOME/gtk!3589

4 years agoMerge branch 'GtkCellLayoutWordingImprovement' into 'master'
Matthias Clasen [Fri, 4 Jun 2021 02:21:33 +0000 (02:21 +0000)]
Merge branch 'GtkCellLayoutWordingImprovement' into 'master'

Added information, that "attributes" refer to CellRenderer "properties".

See merge request GNOME/gtk!3602

4 years agoAdded information, that "attributes" refer to CellRenderer "properties".
DarkTrick [Fri, 4 Jun 2021 02:21:31 +0000 (02:21 +0000)]
Added information, that "attributes" refer to CellRenderer "properties".

4 years agoMerge branch 'fix-appwindow-allocate' into 'master'
Matthias Clasen [Fri, 4 Jun 2021 02:01:53 +0000 (02:01 +0000)]
Merge branch 'fix-appwindow-allocate' into 'master'

applicationwindow: Allocate tooltips

Closes #3997

See merge request GNOME/gtk!3627

4 years agoApply 1 suggestion(s) to 1 file(s)
Matthias Clasen [Fri, 4 Jun 2021 01:53:12 +0000 (01:53 +0000)]
Apply 1 suggestion(s) to 1 file(s)

4 years agoapplicationwindow: Allocate tooltips
Matthias Clasen [Fri, 4 Jun 2021 01:43:13 +0000 (21:43 -0400)]
applicationwindow: Allocate tooltips

GtkApplicationWindows size_allocate does not chain
up if the menubar is visible; don't forget to allocate
the tooltip window in that case.

Fixes: #3997
4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 3 Jun 2021 21:59:26 +0000 (21:59 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Cosmetics: Eradicate gdouble

See merge request GNOME/gtk!3626

4 years agoCosmetics: Eradicate gint
Matthias Clasen [Thu, 3 Jun 2021 21:40:49 +0000 (17:40 -0400)]
Cosmetics: Eradicate gint

Remove a handful of errant uses of gint.

4 years agoCosmetics: Eradicate gdouble
Matthias Clasen [Thu, 3 Jun 2021 18:38:17 +0000 (14:38 -0400)]
Cosmetics: Eradicate gdouble

Remove 3 errant uses of gdouble.

4 years agoMerge branch 'primary-menu-button' into 'master'
Matthias Clasen [Thu, 3 Jun 2021 19:37:23 +0000 (19:37 +0000)]
Merge branch 'primary-menu-button' into 'master'

menubutton: Enable F10 for primary menus

See merge request GNOME/gtk!3580

4 years agoMerge branch 'wip/carlosg/no-early-popup-ungrabs' into 'master'
Matthias Clasen [Thu, 3 Jun 2021 18:10:06 +0000 (18:10 +0000)]
Merge branch 'wip/carlosg/no-early-popup-ungrabs' into 'master'

gdk/wayland: Break only implicit grabs on wl_pointer.leave w/ pressed buttons

See merge request GNOME/gtk!3625

4 years agoMerge branch 'akamfoad/readme-link-fixes' into 'master'
Emmanuele Bassi [Thu, 3 Jun 2021 15:23:45 +0000 (15:23 +0000)]
Merge branch 'akamfoad/readme-link-fixes' into 'master'

Update broken links in README.md

Closes #4001

See merge request GNOME/gtk!3623

4 years agogdk/wayland: Break only implicit grabs on wl_pointer.leave w/ pressed buttons
Carlos Garnacho [Thu, 3 Jun 2021 14:18:28 +0000 (16:18 +0200)]
gdk/wayland: Break only implicit grabs on wl_pointer.leave w/ pressed buttons

The releasing of grabs while a button is pressed (e.g. after starting dnd, or
dragging the window, or going to overview with a pressed button, etc...) was
generalized here in https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/1879.

However we shouldn't break all grabs here. In the case of grabbing popups,
compositors will still emit crossing events between client surfaces (e.g.
popping up and selecting a menu item via press-drag-release), breaking all
grabs here means inconsistent client state, that was
https://gitlab.gnome.org/GNOME/gtk/-/issues/2746.

That was fixed in mutter, by essentially making implicit grabs
owner_events=FALSE, however that breaks the mentioned use pattern entirely.
Mutter is changing this behavior back, so GTK should handle these crossing
events.

The grab that we are interested in breaking here is the implicit pointer
one. Popups will be dismissed via other means if the compositor says their
active grab needs breaking. This still leaves dnd/move/resize drags in
one place, while not allowing #2746 to happen with popups.

4 years agoChanging old Gtk4 link to the new one hosted in gtk docs
Akam Foad [Thu, 3 Jun 2021 14:22:06 +0000 (14:22 +0000)]
Changing old Gtk4 link to the new one hosted in gtk docs

4 years agoUpdate broken links in README.md
Akam Foad [Thu, 3 Jun 2021 14:02:59 +0000 (14:02 +0000)]
Update broken links in README.md

Updated Release notes links from https://developer.gnome.org/gtkX/unstable/YYYY.html
to https://developer.gnome.org/gtkX/stable/YYYY.html in the README.md file in the root
folder.

Closes #4001

4 years agoMerge branch 'ebassi/doc-fixes' into 'master'
Emmanuele Bassi [Thu, 3 Jun 2021 10:32:01 +0000 (10:32 +0000)]
Merge branch 'ebassi/doc-fixes' into 'master'

Small doc fixes

See merge request GNOME/gtk!3622

4 years agodocs: Fix link to the interactive debugging section
Emmanuele Bassi [Thu, 3 Jun 2021 08:31:13 +0000 (09:31 +0100)]
docs: Fix link to the interactive debugging section

It's in the "running" document.

4 years agodocs: Fix the license field
Emmanuele Bassi [Thu, 3 Jun 2021 08:11:09 +0000 (09:11 +0100)]
docs: Fix the license field

It's LGPL-2.1-or-later, not GPL.

4 years agoMerge branch 'wip/chergert/fix-use-after-free-switcher' into 'master'
Matthias Clasen [Wed, 2 Jun 2021 20:21:57 +0000 (20:21 +0000)]
Merge branch 'wip/chergert/fix-use-after-free-switcher' into 'master'

stackswitcher: clear timer when widget id disposed

See merge request GNOME/gtk!3621

4 years agoMerge branch 'macos-menubar' into 'master'
Matthias Clasen [Wed, 2 Jun 2021 20:13:16 +0000 (20:13 +0000)]
Merge branch 'macos-menubar' into 'master'

macos: fix weird menubar rendering.

Closes #3967

See merge request GNOME/gtk!3607

4 years agostackswitcher: clear timer when widget id disposed
Christian Hergert [Wed, 2 Jun 2021 17:19:42 +0000 (10:19 -0700)]
stackswitcher: clear timer when widget id disposed

If the widget is disposed while the cursor has a drag timeout queued, it
can activate after finalization.

4 years agoMerge branch 'wip/otte/for-master' into 'master'
Matthias Clasen [Wed, 2 Jun 2021 14:57:52 +0000 (14:57 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

x11: Be more careful with NVIDIA workaround

See merge request GNOME/gtk!3620

4 years agoMerge branch 'entry-docs-typo' into 'master'
Matthias Clasen [Wed, 2 Jun 2021 11:15:10 +0000 (11:15 +0000)]
Merge branch 'entry-docs-typo' into 'master'

entry: Fix a typo in the docs

See merge request GNOME/gtk!3619

4 years agoentry: Fix a typo in the docs
Matthias Clasen [Wed, 2 Jun 2021 10:47:27 +0000 (06:47 -0400)]
entry: Fix a typo in the docs

4 years agoMerge branch 'wip/exalm/treeview-click' into 'master'
Matthias Clasen [Wed, 2 Jun 2021 10:33:50 +0000 (10:33 +0000)]
Merge branch 'wip/exalm/treeview-click' into 'master'

treeview: Don't handle clicks on any child widgets

Closes #3996

See merge request GNOME/gtk!3618

4 years agoMerge branch 'box-orientation' into 'master'
Matthias Clasen [Wed, 2 Jun 2021 10:16:17 +0000 (10:16 +0000)]
Merge branch 'box-orientation' into 'master'

progressbar: Avoid redundant storage

See merge request GNOME/gtk!3617

4 years agotreeview: Don't handle clicks on any child widgets
Alexander Mikhaylenko [Wed, 2 Jun 2021 08:45:11 +0000 (13:45 +0500)]
treeview: Don't handle clicks on any child widgets

We already skip them on the edited cell widget, but it's also a problem for
header buttons. Overall, there's no real reason to let it propagate here.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3996

4 years agospinbutton: Avoid redundant storage
Matthias Clasen [Tue, 1 Jun 2021 19:35:15 +0000 (15:35 -0400)]
spinbutton: Avoid redundant storage

GtkBoxLayout stores the orientation; no need for
GtkSpinButton to duplicate that.

4 years agoprogressbar: Avoid redundant storage
Matthias Clasen [Tue, 1 Jun 2021 12:17:10 +0000 (08:17 -0400)]
progressbar: Avoid redundant storage

GtkBoxLayout stores the orientation; no need for
GtkProgressBar to duplicate that.

4 years agoMerge branch 'demo-appdata' into 'master'
Matthias Clasen [Tue, 1 Jun 2021 20:17:16 +0000 (20:17 +0000)]
Merge branch 'demo-appdata' into 'master'

demos: Generate appdata

Closes #3993

See merge request GNOME/gtk!3613

4 years agodemos: Generate appdata
Matthias Clasen [Tue, 1 Jun 2021 12:16:27 +0000 (08:16 -0400)]
demos: Generate appdata

We don't maintain a release history here, but at least
we can put in the right version and date for the current
build.

Fixes: #3993
4 years agoMerge branch 'wip/chergert/switcher-orientable' into 'master'
Matthias Clasen [Tue, 1 Jun 2021 18:28:23 +0000 (18:28 +0000)]
Merge branch 'wip/chergert/switcher-orientable' into 'master'

stackswitcher: implement GtkOrientable

Closes #3988

See merge request GNOME/gtk!3606

4 years agostackswitcher: implement GtkOrientable
Christian Hergert [Fri, 28 May 2021 18:50:25 +0000 (11:50 -0700)]
stackswitcher: implement GtkOrientable

In GTK 3, GtkStackSwitcher implemented GtkOrientable via the parent GtkBox
type. In GTK 4, that was changed to inherit from GtkWidget and lost this
interface implementation.

This adds that back, along with a note in the documentation that the
interface was added in GTK 4.4.

Fixes #3988

4 years agoMerge branch 'fix_cast_warning_adding_notebook_page' into 'master'
Matthias Clasen [Tue, 1 Jun 2021 16:18:31 +0000 (16:18 +0000)]
Merge branch 'fix_cast_warning_adding_notebook_page' into 'master'

invalid cast from 'GtkButton' to 'GtkBox'

See merge request GNOME/gtk!3615

4 years agoinvalid cast from 'GtkButton' to 'GtkBox'
Caolán McNamara [Tue, 1 Jun 2021 13:41:13 +0000 (14:41 +0100)]
invalid cast from 'GtkButton' to 'GtkBox'

on adding a page to a GtkNotebook

(soffice): Gtk-CRITICAL **: gtk_box_remove: assertion 'GTK_IS_BOX (box)' failed

4 years agoMerge branch 'screensaver-async-4' into 'master'
Matthias Clasen [Tue, 1 Jun 2021 11:14:38 +0000 (11:14 +0000)]
Merge branch 'screensaver-async-4' into 'master'

gtkapplication-dbus: Fetch inital screen saver state async

See merge request GNOME/gtk!3599

4 years agoMerge branch 'fix-has-actionable-function' into 'master'
Matthias Clasen [Tue, 1 Jun 2021 11:04:56 +0000 (11:04 +0000)]
Merge branch 'fix-has-actionable-function' into 'master'

texthistory: fix has_actionable function

See merge request GNOME/gtk!3612

4 years agotexthistory: fix has_actionable function
liferooter [Tue, 1 Jun 2021 11:04:55 +0000 (11:04 +0000)]
texthistory: fix has_actionable function

4 years agoMerge branch 'box-orientation' into 'master'
Matthias Clasen [Mon, 31 May 2021 23:05:11 +0000 (23:05 +0000)]
Merge branch 'box-orientation' into 'master'

box: Avoid redundant storage

See merge request GNOME/gtk!3611

4 years agobox: Avoid redundant storage
Matthias Clasen [Mon, 31 May 2021 22:38:52 +0000 (18:38 -0400)]
box: Avoid redundant storage

GtkBoxLayout stores the orientation; no need for
GtkBox to duplicate that.

4 years agomacos: fix weird menubar rendering.
Zhi [Sun, 30 May 2021 00:02:18 +0000 (08:02 +0800)]
macos: fix weird menubar rendering.

As app menu has been deprecated, the function of app menu should be
merged into the menubar, which behaves like the original API of NSApp.

This also brings back the default app menu, which looks like native
macOS apps.

For future refactoring, please note that the menubar must contain at
least one menu before being set to NSApp to avoid weird menubar
rendering.

Fixes #3967.

4 years agoUpdate Friulian translation
Fabio Tomat [Thu, 27 May 2021 16:13:04 +0000 (16:13 +0000)]
Update Friulian translation

(cherry picked from commit a80804ccefc8a508611ddd76ba13908fc43c2dbd)

4 years agoMerge branch 'placeholder-alignment' into 'master'
Matthias Clasen [Thu, 27 May 2021 11:44:33 +0000 (11:44 +0000)]
Merge branch 'placeholder-alignment' into 'master'

text: Propagate xalign to the placeholder

Closes #3979

See merge request GNOME/gtk!3604

4 years agotext: Propagate xalign to the placeholder
Matthias Clasen [Thu, 27 May 2021 10:57:23 +0000 (06:57 -0400)]
text: Propagate xalign to the placeholder

This is what we were doing in GTK 3, and there's
no reason not to continue.

Fixes: #3979
4 years agoMerge branch 'bilelmoussaoui/for-gi-docgen-grid' into 'master'
Matthias Clasen [Thu, 27 May 2021 10:31:24 +0000 (10:31 +0000)]
Merge branch 'bilelmoussaoui/for-gi-docgen-grid' into 'master'

docs: fix gtk grid formatting

See merge request GNOME/gtk!3603

4 years agodocs: fix gtk grid formatting
Bilal Elmoussaoui [Thu, 27 May 2021 09:58:42 +0000 (09:58 +0000)]
docs: fix gtk grid formatting

4 years agoMerge branch 'bilelmoussaoui/for-gi-docgen' into 'master'
Emmanuele Bassi [Thu, 27 May 2021 00:43:31 +0000 (00:43 +0000)]
Merge branch 'bilelmoussaoui/for-gi-docgen' into 'master'

docs: fix broken links

See merge request GNOME/gtk!3601

4 years agodocs: fix broken links
Bilal Elmoussaoui [Thu, 27 May 2021 00:18:23 +0000 (00:18 +0000)]
docs: fix broken links

4 years agoMerge branch 'test-text-buffer-undo' into 'master'
Matthias Clasen [Wed, 26 May 2021 19:33:58 +0000 (19:33 +0000)]
Merge branch 'test-text-buffer-undo' into 'master'

Add a test for text buffer history

See merge request GNOME/gtk!3596

4 years agotextbuffer: Add some docs for undo
Matthias Clasen [Wed, 26 May 2021 18:20:39 +0000 (14:20 -0400)]
textbuffer: Add some docs for undo

Mention what is undoable and what isn't.

4 years agotextbuffer: Improve the docs
Matthias Clasen [Wed, 26 May 2021 18:14:48 +0000 (14:14 -0400)]
textbuffer: Improve the docs

Add getter/setter annotations.

4 years agoAdd tests for text buffer history
Matthias Clasen [Wed, 26 May 2021 10:07:46 +0000 (06:07 -0400)]
Add tests for text buffer history

Check that things can be undone.

4 years agoMerge branch 'wip/chergert/fix-3977' into 'master'
Matthias Clasen [Wed, 26 May 2021 17:43:34 +0000 (17:43 +0000)]
Merge branch 'wip/chergert/fix-3977' into 'master'

textbuffer: ensure user actions are propagated to history

Closes #3977

See merge request GNOME/gtk!3600

4 years agotextbuffer: ensure user actions are propagated to history
Christian Hergert [Wed, 26 May 2021 17:11:33 +0000 (10:11 -0700)]
textbuffer: ensure user actions are propagated to history

This was an oversight when porting the GtkTextHistory into GTK. We simply
need to bind the GtkTextBuffer action into the text history for grouping
to work correctly.

Fixes #3977

4 years agogtkapplication-dbus: Fetch inital screen saver state async
Guido Günther [Wed, 26 May 2021 15:08:03 +0000 (17:08 +0200)]
gtkapplication-dbus: Fetch inital screen saver state async

Avoid a sync call that can make the application block for no good
reason.

Fixes 6bfe17105828b0b2eb0f4a362d3039d9416e3519

4 years agoMerge branch 'move-text-history-tests' into 'master'
Matthias Clasen [Wed, 26 May 2021 12:01:58 +0000 (12:01 +0000)]
Merge branch 'move-text-history-tests' into 'master'

Move text history tests

See merge request GNOME/gtk!3597

4 years agoMerge branch 'picture-nullable-setters' into 'master'
Matthias Clasen [Wed, 26 May 2021 11:46:23 +0000 (11:46 +0000)]
Merge branch 'picture-nullable-setters' into 'master'

picture: Make setters actually take NULL

Closes #3974

See merge request GNOME/gtk!3598